<?php

class Koneksi {
	var $host;
	var $user;
	var $pass;
	var $dbnm;
	var $db;

	function __construct () {
		$this-> host = '127.0.0.1';
		$this-> user = 'root';
		$this-> pass = '';
		$this-> dbnm = 'pronsweb';
	}
	
	function _connect(){
		$this->db = mysql_connect($this->host,$this->user,$this->pass);
		mysql_select_db($this->dbnm,$this->db);
	}
	
	function getdb() {
		$db = $this-> db;
		return $db;
	}
	
	function _close(){
		mysql_close($this->db);
	}
}
